package com.eol.common.rabbitMq;

import org.springframework.context.annotation.Configuration;

/**
 * Created with IntelliJ IDEA.
 * User: liulinhui
 * Date: 2019/12/3
 * Time: 4:37 PM
 * Description: RabbitMqConstants
 */
@Configuration
public class RabbitMqConstants {

    //订单自动取消相关常量
    public static final String BBQ_ORDER_DEAD_LETTERS_QUEUE_NAME = "bbq_order_dead_letters_queue_name"; //订单死信队列
    public static final String BBQ_ORDER_DEAD_LETTERS_EXCHANGE_NAME = "bbq_order_dead_letters_exchange_name"; //订单死信交换机
    public static final String BBQ_ORDER_QUEUE_NAME = "bbq_order_queue";  //订单队列
    public static final String BBQ_ORDER_EXCHANGE_NAME = "bbq_order_exchange"; //订单交换机
    public static final String BBQ_ORDER_ROUTING_KEY = "bbq_order.add"; //下单入队列routing_key
    public static final int BBQ_ORDER_EXPIRE_TIME = 15 * 60 * 1000; //订单超时时间 15分钟


    //订单自动完结相关常量
    public static final String BBQ_ORDER_FINISH_DEAD_LETTERS_QUEUE_NAME = "bbq_order_finish_dead_letters_queue_name"; //订单自动完结死信队列
    public static final String BBQ_ORDER_FINISH_DEAD_LETTERS_EXCHANGE_NAME = "bbq_order_finish_dead_letters_exchange_name"; //订单自动完结死信交换机
    public static final String BBQ_ORDER_FINISH_QUEUE_NAME = "bbq_order_finish_queue";  //订单自动完结队列
    public static final String BBQ_ORDER_FINISH_EXCHANGE_NAME = "bbq_order_finish_exchange"; //订单自动完结交换机
    public static final String BBQ_ORDER_FINISH_ROUTING_KEY = "bbq_order_finish.add"; //订单自动完结入队列routing_key
    public static final int BBQ_ORDER_FINISH_EXPIRE_TIME = 3 * 60 * 60 * 1000; //订单自动完结超时时间 3个小时
}
